<?php include_once './application/views/sys_admin/common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once './application/views/sys_admin/common/shop_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
		<div class="admin_right_title">
			<strong>商城管理</strong> &gt;&gt;  添加商城滚动图片
		</div>
		
		<div class="admin_right_info">
			<form action="/sys_admin/shop/do_scrollpic/" method="post" id="scrollpicForm" name="scrollpicForm" enctype="multipart/form-data">
			<input type="hidden" id="act" name="act" value="add" />
			<div class="admin_right_info_title"><h2>添加商城滚动图片</h2></div>
			<ul>
				<li>
					<font color="red"><?php echo @validation_errors(); ?></font>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">URL：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="url" id="url" size="50"  value="<?php echo @set_value('url');?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="urlTip"></div> </div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">站点名称：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="title" id="title" size="50" value="<?php echo @set_value('title');?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="titleTip"></div></div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">图片：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="file" name="pic" id="pic" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="picTip"></div></div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">排序：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="forder" id="forder" value="<?php echo @set_value('forder')?set_value('forder'):0;?>" />
					</div>
					<div class="admin_right_info_tr admin_right_info_r"><div id="forderTip"></div></div>
				</li>
				<li>
					<input type="submit" value="提交" />
				</li>
			</ul>
			</form>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formID:"scrollpicForm",debug:false,submitOnce:true,
		onError:function(msg,obj,errorlist){
			$("#errorlist").empty();
			$.map(errorlist,function(msg){
				$("#errorlist").append("<li>" + msg + "</li>")
			});
			alert(msg);
		},
		submitAfterAjaxPrompt : '有数据正在异步验证，请稍等...'
	});
	$("#url").formValidator({autoModify:true,onShow:"",onFocus:"URL在1-100个字符之间",onCorrect:""}).inputValidator({min:1,max:100,onError:"URL不能为空,请确认"});
});
</script>
<div id="dialog" title="系统提示" style="display:none"><p id="msg" style="text-align:center"></p></div>
</body>
</html>
